<template>
  <view class="page">
    <u-parse :content="protocol.content" />
  </view>
</template>

<script>
import { userAgreement } from "@/request/api.js";
export default {
  data() {
    return {
      protocol: {}, // 协议信息
    };
  },
  created() {
    this.getData();
  },
  methods: {
    // 获取协议信息
    getData() {
      userAgreement().then((res) => {
        if (res.code == 1) {
          let info = res.data.find((i) => (i.type = "verif"));
          this.protocol = info || {};
        }
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.page {
  word-break: break-all;
}
</style>
